import bus from "@/bus";
import { renderButton } from '@/util';
let data = {
  status: 'pass',
  columns: [{
    title: '流程名称',
    key: 'name',
    align: 'left',
    minWidth: 150
  }, {
    title: '流程节点',
    key: 'title',
    align: 'left',
    minWidth: 370
  }, {
    title: '修改时间',
    key: 'date',
    align: 'left',
    minWidth: 200
  }, {
    title: '修改人',
    key: 'unit',
    align: 'left',
    minWidth: 150
  }, {
    title: '操作',
    align: 'right',
    minWidth: 100,
    render: (h, params) => {
      return (
        <div>
          { renderButton(h, { text: '编辑', type: 'primary',},
            ()=>{ bus.$emit("onEdit", params.row.id)})}
        </div>
      )
    }
  }],
  data: []
}
export default data